home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •AdventureLand• / Adventures / Battle of Britain 1 ••••• / Battle of Britain 1 еееее / card_5101.txt < prev    next >
Text File  |  1990-08-26  |  32KB  |  1,583 lines

  1. -- card: 5101 from stack: in
  2. -- bmap block id: 6739
  3. -- flags: 4000
  4. -- background id: 2789
  5. -- name: A
  6. ----- HyperTalk script -----
  7. on openCard
  8.  
  9.   global justVisiting,BBDATE,reset,bbtime,landtime
  10.   put 4 into standby
  11.   put 7 into ordered
  12.   put 8 into landed
  13.  
  14.   repeat
  15.     if hilite of button ordered is true then
  16.       set hilite of button ordered to false
  17.       set hilite of button landed to true
  18.     end if
  19.     if hilite of button landed is true then
  20.       IF LANDTIME <BBTIME THEN
  21.         SET HILITE OF BUTTON LANDED TO FALSE          --new
  22.         set hilite of button standby to true
  23.       end if
  24.     END IF
  25.     add 7 to standby
  26.     add 7 to ordered
  27.     add 7 to landed
  28.     if landed >30 then
  29.       exit repeat
  30.     end if
  31.   end repeat
  32.  
  33.   if justVisiting is empty then
  34.     exit openCard
  35.   end if
  36.   put 2 into released
  37.   put 3 into avail
  38.   put 5 into patrol
  39.   HIDE CARD FIELD "SHUTDOWN"
  40.   repeat 4 TIMES
  41.     if hilite of button patrol is true then
  42.       send "go" to button patrol
  43.     else
  44.       if hilite of button released is true then
  45.         send "go" to button released
  46.       else
  47.         send "go" to button avail
  48.       end if
  49.     end if
  50.     add 7 to released
  51.     add 7 to avail
  52.     add 7 to patrol
  53.   end repeat
  54.  
  55.   if bbDate contains "AUG 18" THEN SET THE RECT OF CARD FIELD "HIDESQUADS" TO 372,0,512,342
  56.  
  57.   if reset =1 then
  58.     REPEAT WITH I =1 TO THE NUMBER OF BUTTONS
  59.       SET  HILITE OF BUTTON I TO FALSE
  60.     END REPEAT
  61.     SET HILITE OF BUTTON 4 TO TRUE
  62.     SET HILITE OF BUTTON 11 TO TRUE
  63.     SET HILITE OF BUTTON 18 TO TRUE
  64.     SET HILITE OF BUTTON 25 TO TRUE
  65.     SET RECT OF CARD FIELD "HIDESQUADS" TO 308,0,512,342
  66.     HIDE CARD FIELD "SHUTDOWN"
  67.     repeat with i =166 to 169
  68.       put empty into card field id i
  69.     end repeat
  70.   end if
  71. end openCard
  72. ON SHUTDOWN
  73.   SHOW CARD FIELD "SHUTDOWN" OF CARD "A"             --NEW
  74. END SHUTDOWN
  75. on closecard
  76.   hide card field "outofrange"
  77. end closecard
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84. -- part 64 (button)
  85. -- low flags: 00
  86. -- high flags: 0000
  87. -- rect: left=9 top=27 right=131 bottom=95
  88. -- title width / last selected line: 0
  89. -- icon id / first selected line: 0 / 0
  90. -- text alignment: 1
  91. -- font id: 0
  92. -- text size: 12
  93. -- style flags: 0
  94. -- line height: 16
  95. -- part name: Map
  96. ----- HyperTalk script -----
  97. on mouseUp
  98.   go to card "map"
  99. end mouseUp
  100.  
  101.  
  102.  
  103. -- part 121 (button)
  104. -- low flags: 00
  105. -- high flags: 0000
  106. -- rect: left=116 top=44 right=66 bottom=168
  107. -- title width / last selected line: 0
  108. -- icon id / first selected line: 0 / 0
  109. -- text alignment: 1
  110. -- font id: 0
  111. -- text size: 12
  112. -- style flags: 0
  113. -- line height: 16
  114. -- part name: 
  115. ----- HyperTalk script -----
  116. on mouseDown
  117.   put 28 into releaseDate                   --CHANGE
  118.   if hilite of ME is true then
  119.     show card field id releaseDate at the mouseh, the mousev
  120.   else
  121.     beep
  122.     exit mouseDown
  123.   end if
  124. end mouseDown
  125.  
  126. on mouseUp
  127.   put 28 into releaseDate                    --CHANGE
  128.   hide card field id releaseDate
  129. end mouseUp
  130.  
  131. on go
  132.   GLOBAL AVAIL,RELEASEDATE
  133.   put 3 into avail                           --CHANGES
  134.   put 28 into releaseDate
  135.   RELEASE
  136. END GO
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154. -- part 122 (button)
  155. -- low flags: 00
  156. -- high flags: 0000
  157. -- rect: left=116 top=65 right=85 bottom=168
  158. -- title width / last selected line: 0
  159. -- icon id / first selected line: 0 / 0
  160. -- text alignment: 1
  161. -- font id: 0
  162. -- text size: 12
  163. -- style flags: 0
  164. -- line height: 16
  165. -- part name: 
  166. ----- HyperTalk script -----
  167. on mouseUp
  168.   beep
  169.   if hilite of me is false then exit mouseUp
  170.   SHOW CARD FIELD "PUB" at the mouseh, the mousev
  171. end mouseUp
  172.  
  173. on go
  174.   put 4 into standby                            --CHANGE
  175.   if hilite of ME is true then
  176.     set the hilite of  ME to false
  177.     set the hilite of button standby to true
  178.   end if
  179. end go
  180.  
  181.  
  182.  
  183.  
  184.  
  185. -- part 123 (button)
  186. -- low flags: 00
  187. -- high flags: 4000
  188. -- rect: left=116 top=84 right=108 bottom=168
  189. -- title width / last selected line: 0
  190. -- icon id / first selected line: 0 / 0
  191. -- text alignment: 1
  192. -- font id: 0
  193. -- text size: 12
  194. -- style flags: 0
  195. -- line height: 16
  196. -- part name: 
  197. ----- HyperTalk script -----
  198. on mouseUp
  199.   beep
  200. end mouseUp
  201.  
  202.  
  203.  
  204.  
  205. -- part 124 (button)
  206. -- low flags: 00
  207. -- high flags: 0000
  208. -- rect: left=116 top=107 right=132 bottom=168
  209. -- title width / last selected line: 0
  210. -- icon id / first selected line: 0 / 0
  211. -- text alignment: 1
  212. -- font id: 0
  213. -- text size: 12
  214. -- style flags: 0
  215. -- line height: 16
  216. -- part name: 
  217. ----- HyperTalk script -----
  218. on mouseDown
  219.   put 2 into released             -- CHANGES
  220.   put 3 into avail
  221.  
  222.   if hilite of button released is true or hilite of button avail is true then
  223.     beep
  224.     show card field "nono" at the mouseh, the mousev
  225.   end if
  226. end mouseDown
  227.  
  228. on mouseUp
  229.   global warning
  230.   put 4 into standby
  231.   put "112,295" into coord
  232.   put 13 into idplane
  233.  
  234.   if hilite of button standby is true then
  235.     if warning is not "L" and warning is not "N" then
  236.       set hilite of button standby to false
  237.       set hilite of ME to true
  238.       -- set icon of button id idplane of card "Map" to 6071
  239.       show button id idplane of card "map" at coord
  240.     else
  241.       beep
  242.       show card field "outOfRange" at the mouseh, the mousev
  243.     end if
  244.   end if
  245.   hide card field "nono"
  246. end mouseUp
  247.  
  248. on go
  249.   put 4 into standby
  250.   put 13 into idplane
  251.   put "112,295" into coord
  252.  
  253.   set hilite of me to false
  254.   set hilite of button standby to true
  255.  
  256.   HIDE button id idplane of card "map"
  257.  
  258. end go
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. -- part 125 (button)
  269. -- low flags: 00
  270. -- high flags: 0000
  271. -- rect: left=116 top=144 right=172 bottom=168
  272. -- title width / last selected line: 0
  273. -- icon id / first selected line: 0 / 0
  274. -- text alignment: 1
  275. -- font id: 0
  276. -- text size: 12
  277. -- style flags: 0
  278. -- line height: 16
  279. -- part name: SQD43A
  280. ----- HyperTalk script -----
  281. on mouseUp
  282.  
  283.   global avail,standby,patrol,detail,idplane,enroute,warning
  284.   if warning is empty then
  285.     beep
  286.     show card field "whatraid" at the mouseh, the mousev
  287.     exit mouseUp
  288.   end if
  289.  
  290.   put 3 into avail
  291.   put 4 into standby
  292.   put 5 into patrol
  293.   put 6 into detail                                         --CHANGES
  294.   put 13 into idplane
  295.   put "a" into enroute
  296.   detail
  297. end mouseUp
  298.  
  299. on go
  300.   global numSquads,force,avail,standby,patrol,detail,idplane,sorties
  301.   put 3 into avail
  302.   put 4 into standby
  303.   put 5 into patrol
  304.   put 6 into detail                                         --CHANGES
  305.   put 13 into idplane
  306.   put 166 into sorties
  307.   if hilite of button patrol is true or hilite of button standby is true then
  308.     add 2 to force                                        --CHANGES
  309.     set hilite of button patrol to false
  310.     set hilite of button standby to false
  311.   end if
  312.   if hilite of button avail is true then add 1.5 to force   --CHANGES
  313.   put the length of card field id sorties into exp
  314.   divide exp by 20
  315.   add exp to force
  316.   put "/" after card field id sorties
  317.   goa
  318. end go
  319.  
  320.  
  321. on results
  322.   --global damage,force,bforce,fforce,done
  323.   global released,avail,releaseDate,base,coord,idplane,sorties
  324.   put 2 into released
  325.   put 3 into avail
  326.   put 28 into releaseDate                                 --CHANGES
  327.   put "A" into base
  328.   put "112,295" into coord
  329.   put 13 into idplane
  330.   put 166 into sorties
  331.   resultsa
  332. end results
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342. -- part 126 (button)
  343. -- low flags: 00
  344. -- high flags: 0000
  345. -- rect: left=116 top=171 right=201 bottom=168
  346. -- title width / last selected line: 0
  347. -- icon id / first selected line: 0 / 0
  348. -- text alignment: 1
  349. -- font id: 0
  350. -- text size: 12
  351. -- style flags: 0
  352. -- line height: 16
  353. -- part name: 
  354. ----- HyperTalk script -----
  355. on mouseUp
  356.   global coord,patrol,detail,idplane
  357.   put "112,295" into coord
  358.   put 5 into patrol
  359.   put 6 into detail                                          --CHANGES
  360.   put 13 into idplane
  361.   land
  362. end mouseUp
  363.  
  364.  
  365.  
  366.  
  367.  
  368. -- part 127 (button)
  369. -- low flags: 00
  370. -- high flags: 0000
  371. -- rect: left=116 top=200 right=229 bottom=168
  372. -- title width / last selected line: 0
  373. -- icon id / first selected line: 0 / 0
  374. -- text alignment: 1
  375. -- font id: 0
  376. -- text size: 12
  377. -- style flags: 0
  378. -- line height: 16
  379. -- part name: 
  380. ----- HyperTalk script -----
  381. on mouseUp
  382.   beep
  383. end mouseUp
  384.  
  385.  
  386.  
  387.  
  388. -- part 128 (button)
  389. -- low flags: 00
  390. -- high flags: 0000
  391. -- rect: left=180 top=44 right=66 bottom=232
  392. -- title width / last selected line: 0
  393. -- icon id / first selected line: 0 / 0
  394. -- text alignment: 1
  395. -- font id: 0
  396. -- text size: 12
  397. -- style flags: 0
  398. -- line height: 16
  399. -- part name: 
  400. ----- HyperTalk script -----
  401. on mouseDown
  402.   put 60 into releaseDate                   --CHANGE
  403.   if hilite of ME is true then
  404.     show card field id releaseDate at the mouseh, the mousev
  405.   else
  406.     beep
  407.     exit mouseDown
  408.   end if
  409. end mouseDown
  410.  
  411. on mouseUp
  412.   put 60 into releaseDate                    --CHANGE
  413.   hide card field id releaseDate
  414. end mouseUp
  415.  
  416. on go
  417.   GLOBAL AVAIL,RELEASEDATE
  418.   put 10 into avail                           --CHANGES
  419.   put 60 into releaseDate
  420.   RELEASE
  421. END GO
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435. -- part 129 (button)
  436. -- low flags: 00
  437. -- high flags: 0000
  438. -- rect: left=180 top=65 right=85 bottom=232
  439. -- title width / last selected line: 0
  440. -- icon id / first selected line: 0 / 0
  441. -- text alignment: 1
  442. -- font id: 0
  443. -- text size: 12
  444. -- style flags: 0
  445. -- line height: 16
  446. -- part name: 
  447. ----- HyperTalk script -----
  448. on mouseup
  449.   beep
  450.   if hilite of me is false then exit mouseUp
  451.   SHOW CARD FIELD "PUB" at the mouseh, the mousev
  452. end mouseup
  453.  
  454. on go
  455.  
  456.   put 11 into standby
  457.   if hilite of me is true then
  458.     set the hilite of me to false
  459.     set the hilite of button standby to true
  460.   end if
  461. end go
  462.  
  463.  
  464.  
  465.  
  466.  
  467. -- part 130 (button)
  468. -- low flags: 00
  469. -- high flags: 4000
  470. -- rect: left=180 top=84 right=108 bottom=232
  471. -- title width / last selected line: 0
  472. -- icon id / first selected line: 0 / 0
  473. -- text alignment: 1
  474. -- font id: 0
  475. -- text size: 12
  476. -- style flags: 0
  477. -- line height: 16
  478. -- part name: 
  479. ----- HyperTalk script -----
  480. on mouseUp
  481.   beep
  482. end mouseUp
  483.  
  484.  
  485.  
  486.  
  487. -- part 131 (button)
  488. -- low flags: 00
  489. -- high flags: 0000
  490. -- rect: left=180 top=107 right=132 bottom=232
  491. -- title width / last selected line: 0
  492. -- icon id / first selected line: 0 / 0
  493. -- text alignment: 1
  494. -- font id: 0
  495. -- text size: 12
  496. -- style flags: 0
  497. -- line height: 16
  498. -- part name: 
  499. ----- HyperTalk script -----
  500. on mouseDown
  501.   put 9 into released             -- CHANGES
  502.   put 10 into avail
  503.  
  504.   if hilite of button released is true or hilite of button avail is true then
  505.     beep
  506.     show card field "nono" at the mouseh, the mousev
  507.   end if
  508. end mouseDown
  509.  
  510. on mouseUp
  511.   global warning
  512.   put 11 into standby
  513.   put "142,280" into coord
  514.   put 39 into idplane
  515.  
  516.   if hilite of button standby is true then
  517.     if warning is not "L" and warning is not "N" then
  518.       set hilite of button standby to false
  519.       set hilite of ME to true
  520.       --set icon of button id idplane of card "Map" to 6071
  521.       show button id idplane of card "map" at coord
  522.     else
  523.       beep
  524.       show card field "outOfRange" at the mouseh, the mousev
  525.     end if
  526.   end if
  527.   hide card field "nono"
  528. end mouseUp
  529.  
  530. on go
  531.   put 11 into standby
  532.   put 39 into idplane
  533.   put "142,280" into coord
  534.  
  535.   set hilite of me to false
  536.   set hilite of button standby to true
  537.   hide button id idplane of card "map"
  538. end go
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547. -- part 132 (button)
  548. -- low flags: 00
  549. -- high flags: 0000
  550. -- rect: left=180 top=144 right=172 bottom=232
  551. -- title width / last selected line: 0
  552. -- icon id / first selected line: 0 / 0
  553. -- text alignment: 1
  554. -- font id: 0
  555. -- text size: 12
  556. -- style flags: 0
  557. -- line height: 16
  558. -- part name: SQ145A
  559. ----- HyperTalk script -----
  560. on mouseUp
  561.   --global warning,objective,range,range2
  562.   global avail,standby,patrol,detail,idplane,enroute,warning
  563.   if warning is empty then
  564.     beep
  565.     show card field "whatraid" at the mouseh, the mousev
  566.     exit mouseUp
  567.   end if
  568.  
  569.   put 10 into avail
  570.   put 11 into standby
  571.   put 12 into patrol
  572.   put 13 into detail                                         --CHANGES
  573.   put 39 into idplane
  574.   put "a" into enroute
  575.   detail
  576. end mouseUp
  577.  
  578. on go
  579.   global numSquads,force,avail,standby,patrol,detail,idplane
  580.   put 10 into avail
  581.   put 11 into standby
  582.   put 12 into patrol
  583.   put 13 into detail                                         --CHANGES
  584.   put 39 into idplane
  585.   put 167 into sorties
  586.   if hilite of button patrol is true or hilite of button standby is true then
  587.     add 2 to force                                        --CHANGES
  588.     set hilite of button patrol to false
  589.     set hilite of button standby to false
  590.   end if
  591.   if hilite of button avail is true then add 1.5 to force     --CHANGES
  592.   put the length of card field id sorties into exp
  593.   divide exp by 20
  594.   add exp to force
  595.   put "/" after card field id sorties
  596.   goa
  597. end go
  598.  
  599.  
  600. on results
  601.   global damage,force,bforce,fforce,done
  602.   global released,avail,releaseDate,base,coord,idplane,sorties
  603.   put 9 into released
  604.   put 10 into avail
  605.   put 60 into releaseDate                                 --CHANGES
  606.   put "A" into base
  607.   put "142,280" into coord
  608.   put 39 into idplane
  609.   put 167 into sorties
  610.   resultsa
  611. end results
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629. -- part 133 (button)
  630. -- low flags: 00
  631. -- high flags: 0000
  632. -- rect: left=180 top=171 right=201 bottom=232
  633. -- title width / last selected line: 0
  634. -- icon id / first selected line: 0 / 0
  635. -- text alignment: 1
  636. -- font id: 0
  637. -- text size: 12
  638. -- style flags: 0
  639. -- line height: 16
  640. -- part name: 
  641. ----- HyperTalk script -----
  642. on mouseUp
  643.   global coord,patrol,detail,idplane
  644.   put "142,280" into coord
  645.   put 12 into patrol
  646.   put 13 into detail                                          --CHANGES
  647.   put 39 into idplane
  648.   land
  649. end mouseUp
  650.  
  651.  
  652.  
  653.  
  654.  
  655. -- part 134 (button)
  656. -- low flags: 00
  657. -- high flags: 0000
  658. -- rect: left=180 top=200 right=229 bottom=232
  659. -- title width / last selected line: 0
  660. -- icon id / first selected line: 0 / 0
  661. -- text alignment: 1
  662. -- font id: 0
  663. -- text size: 12
  664. -- style flags: 0
  665. -- line height: 16
  666. -- part name: 
  667. ----- HyperTalk script -----
  668. on mouseUp
  669.   beep
  670. end mouseUp
  671.  
  672.  
  673.  
  674.  
  675. -- part 135 (button)
  676. -- low flags: 00
  677. -- high flags: 0000
  678. -- rect: left=244 top=44 right=66 bottom=296
  679. -- title width / last selected line: 0
  680. -- icon id / first selected line: 0 / 0
  681. -- text alignment: 1
  682. -- font id: 0
  683. -- text size: 12
  684. -- style flags: 0
  685. -- line height: 16
  686. -- part name: 
  687. ----- HyperTalk script -----
  688. on mouseDown
  689.   put 61 into releaseDate                   --CHANGE
  690.   if hilite of ME is true then
  691.     show card field id releaseDate at the mouseh, the mousev
  692.   else
  693.     beep
  694.     exit mouseDown
  695.   end if
  696. end mouseDown
  697.  
  698. on mouseUp
  699.   put 61 into releaseDate                    --CHANGE
  700.   hide card field id releaseDate
  701. end mouseUp
  702.  
  703. on go
  704.   GLOBAL AVAIL,RELEASEDATE
  705.   put 17 into avail                           --CHANGES
  706.   put 61 into releaseDate
  707.   RELEASE
  708. END GO
  709.  
  710.  
  711.  
  712.  
  713. -- part 136 (button)
  714. -- low flags: 00
  715. -- high flags: 0000
  716. -- rect: left=244 top=65 right=85 bottom=296
  717. -- title width / last selected line: 0
  718. -- icon id / first selected line: 0 / 0
  719. -- text alignment: 1
  720. -- font id: 0
  721. -- text size: 12
  722. -- style flags: 0
  723. -- line height: 16
  724. -- part name: 
  725. ----- HyperTalk script -----
  726. on mouseUp
  727.   beep
  728.   if hilite of me is false then exit mouseUp
  729.   SHOW CARD FIELD "PUB" at the mouseh, the mousev
  730. end mouseUp
  731.  
  732. on go
  733.  
  734.   put 18 into standby
  735.  
  736.   if hilite of me is true then
  737.     set the hilite of me to false
  738.     set the hilite of button standby to true
  739.   end if
  740.  
  741.  
  742. end go
  743.  
  744.  
  745.  
  746.  
  747.  
  748. -- part 137 (button)
  749. -- low flags: 00
  750. -- high flags: 4000
  751. -- rect: left=244 top=84 right=108 bottom=296
  752. -- title width / last selected line: 0
  753. -- icon id / first selected line: 0 / 0
  754. -- text alignment: 1
  755. -- font id: 0
  756. -- text size: 12
  757. -- style flags: 0
  758. -- line height: 16
  759. -- part name: 
  760. ----- HyperTalk script -----
  761. on mouseup
  762.   beep
  763. end mouseup
  764.  
  765.  
  766.  
  767.  
  768. -- part 138 (button)
  769. -- low flags: 00
  770. -- high flags: 0000
  771. -- rect: left=244 top=107 right=132 bottom=296
  772. -- title width / last selected line: 0
  773. -- icon id / first selected line: 0 / 0
  774. -- text alignment: 1
  775. -- font id: 0
  776. -- text size: 12
  777. -- style flags: 0
  778. -- line height: 16
  779. -- part name: 
  780. ----- HyperTalk script -----
  781. on mouseDown
  782.   put 16 into released             -- CHANGES
  783.   put 17 into avail
  784.  
  785.   if hilite of button released is true or hilite of button avail is true then
  786.     beep
  787.     show card field "nono" at the mouseh, the mousev
  788.   end if
  789. end mouseDown
  790.  
  791. on mouseUp
  792.   global warning
  793.   put 18 into standby
  794.   put "112,280" into coord
  795.   put 15 into idplane
  796.  
  797.   if hilite of button standby is true then
  798.     if warning is not "L" and warning is not "N" then
  799.       set hilite of button standby to false
  800.       set hilite of ME to true
  801.  
  802.       show button id idplane of card "map" at coord
  803.     else
  804.       beep
  805.       show card field "outOfRange" at the mouseh, the mousev
  806.     end if
  807.   end if
  808.   hide card field "nono"
  809. end mouseUp
  810.  
  811. on go
  812.   put 18 into standby
  813.   put 15 into idplane
  814.   put "112,280" into coord
  815.  
  816.   set hilite of me to false
  817.   set hilite of button standby to true
  818.   hide button id idplane of card "map"
  819. end go
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832. -- part 60 (field)
  833. -- low flags: 81
  834. -- high flags: 2004
  835. -- rect: left=170 top=32 right=88 bottom=245
  836. -- title width / last selected line: 0
  837. -- icon id / first selected line: 0 / 0
  838. -- text alignment: 1
  839. -- font id: 3
  840. -- text size: 9
  841. -- style flags: 0
  842. -- line height: 10
  843. -- part name: releaseDate2
  844. ----- HyperTalk script -----
  845. on mouseUp
  846.   hide card field "releaseDate2"
  847. end mouseUp
  848.  
  849.  
  850.  
  851. -- part 139 (button)
  852. -- low flags: 00
  853. -- high flags: 0000
  854. -- rect: left=244 top=144 right=172 bottom=296
  855. -- title width / last selected line: 0
  856. -- icon id / first selected line: 0 / 0
  857. -- text alignment: 1
  858. -- font id: 0
  859. -- text size: 12
  860. -- style flags: 0
  861. -- line height: 16
  862. -- part name: SQ601A
  863. ----- HyperTalk script -----
  864. on mouseUp
  865.   --global warning,objective,range,range2
  866.   global avail,standby,patrol,detail,idplane,enroute,warning
  867.   if warning is empty then
  868.     beep
  869.     show card field "whatraid" at the mouseh, the mousev
  870.     exit mouseUp
  871.   end if
  872.  
  873.   put 17 into avail
  874.   put 18 into standby
  875.   put 19 into patrol
  876.   put 20 into detail                                         --CHANGES
  877.   put 15 into idplane
  878.   put "a" into enroute
  879.   detail
  880. end mouseUp
  881.  
  882. on go
  883.   global numSquads,force,avail,standby,patrol,detail,idplane
  884.   put 17 into avail
  885.   put 18 into standby
  886.   put 19 into patrol
  887.   put 20 into detail                                         --CHANGES
  888.   put 15 into idplane
  889.   put 168 into sorties
  890.   if hilite of button patrol is true or hilite of button standby is true then
  891.     add 2 to force                                        --CHANGES
  892.     set hilite of button patrol to false
  893.     set hilite of button standby to false
  894.   end if
  895.   if hilite of button avail is true then add 1.5 to force     --CHANGES
  896.   put the length of card field id sorties into exp
  897.   divide exp by 20
  898.   add exp to force
  899.   put "/" after card field id sorties
  900.   goa
  901. end go
  902.  
  903.  
  904. on results
  905.   global damage,force,bforce,fforce,done
  906.   global released,avail,releaseDate,base,coord,idplane,sorties
  907.   put 16 into released
  908.   put 17 into avail
  909.   put 61 into releaseDate                                 --CHANGES
  910.   put "A" into base
  911.   put "112,280" into coord
  912.   put 15 into idplane
  913.   put 168 into sorties
  914.   resultsa
  915. end results
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930. -- part 140 (button)
  931. -- low flags: 00
  932. -- high flags: 0000
  933. -- rect: left=244 top=171 right=201 bottom=296
  934. -- title width / last selected line: 0
  935. -- icon id / first selected line: 0 / 0
  936. -- text alignment: 1
  937. -- font id: 0
  938. -- text size: 12
  939. -- style flags: 0
  940. -- line height: 16
  941. -- part name: 
  942. ----- HyperTalk script -----
  943. on mouseUp
  944.   global coord,patrol,detail,idplane
  945.   put "112,280" into coord
  946.   put 19 into patrol
  947.   put 20 into detail                                          --CHANGES
  948.   put 15 into idplane
  949.   land
  950. end mouseUp
  951.  
  952.  
  953.  
  954.  
  955. -- part 141 (button)
  956. -- low flags: 00
  957. -- high flags: 0000
  958. -- rect: left=244 top=200 right=229 bottom=296
  959. -- title width / last selected line: 0
  960. -- icon id / first selected line: 0 / 0
  961. -- text alignment: 1
  962. -- font id: 0
  963. -- text size: 12
  964. -- style flags: 0
  965. -- line height: 16
  966. -- part name: 
  967. ----- HyperTalk script -----
  968. on mouseUp
  969.   beep
  970. end mouseUp
  971.  
  972.  
  973.  
  974.  
  975. -- part 142 (button)
  976. -- low flags: 00
  977. -- high flags: 0000
  978. -- rect: left=308 top=44 right=66 bottom=360
  979. -- title width / last selected line: 0
  980. -- icon id / first selected line: 0 / 0
  981. -- text alignment: 1
  982. -- font id: 0
  983. -- text size: 12
  984. -- style flags: 0
  985. -- line height: 16
  986. -- part name: 
  987. ----- HyperTalk script -----
  988. on mouseDown
  989.   put 62 into releaseDate                   --CHANGE
  990.   if hilite of ME is true then
  991.     show card field id releaseDate at the mouseh, the mousev
  992.   else
  993.     beep
  994.     exit mouseDown
  995.   end if
  996. end mouseDown
  997.  
  998. on mouseUp
  999.   put 62 into releaseDate                    --CHANGE
  1000.   hide card field id releaseDate
  1001. end mouseUp
  1002.  
  1003. on go
  1004.   GLOBAL AVAIL,RELEASEDATE
  1005.   put 24 into avail                           --CHANGES
  1006.   put 62 into releaseDate
  1007.   RELEASE
  1008. END GO
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025. -- part 144 (button)
  1026. -- low flags: 00
  1027. -- high flags: 0000
  1028. -- rect: left=308 top=65 right=85 bottom=360
  1029. -- title width / last selected line: 0
  1030. -- icon id / first selected line: 0 / 0
  1031. -- text alignment: 1
  1032. -- font id: 0
  1033. -- text size: 12
  1034. -- style flags: 0
  1035. -- line height: 16
  1036. -- part name: 
  1037. ----- HyperTalk script -----
  1038. on mouseUp
  1039.   beep
  1040.   if hilite of me is false then exit mouseUp
  1041.   SHOW CARD FIELD "PUB" at the mouseh, the mousev
  1042. end mouseUp
  1043.  
  1044. on go
  1045.  
  1046.   put 25 into standby
  1047.  
  1048.   if hilite of me is true then
  1049.     set the hilite of me to false
  1050.     set the hilite of button standby to true
  1051.   end if
  1052.  
  1053.  
  1054. end go
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060. -- part 145 (button)
  1061. -- low flags: 00
  1062. -- high flags: 4000
  1063. -- rect: left=308 top=84 right=108 bottom=360
  1064. -- title width / last selected line: 0
  1065. -- icon id / first selected line: 0 / 0
  1066. -- text alignment: 1
  1067. -- font id: 0
  1068. -- text size: 12
  1069. -- style flags: 0
  1070. -- line height: 16
  1071. -- part name: 
  1072. ----- HyperTalk script -----
  1073. on mouseup
  1074.   beep
  1075. end mouseup
  1076.  
  1077.  
  1078.  
  1079.  
  1080. -- part 146 (button)
  1081. -- low flags: 00
  1082. -- high flags: 0000
  1083. -- rect: left=308 top=107 right=132 bottom=360
  1084. -- title width / last selected line: 0
  1085. -- icon id / first selected line: 0 / 0
  1086. -- text alignment: 1
  1087. -- font id: 0
  1088. -- text size: 12
  1089. -- style flags: 0
  1090. -- line height: 16
  1091. -- part name: 
  1092. ----- HyperTalk script -----
  1093. on mouseDown
  1094.   put 23 into released             -- CHANGES
  1095.   put 24 into avail
  1096.  
  1097.   if hilite of button released is true or hilite of button avail is true then
  1098.     beep
  1099.     show card field "nono" at the mouseh, the mousev
  1100.   end if
  1101. end mouseDown
  1102.  
  1103. on mouseUp
  1104.   global warning
  1105.   put 25 into standby
  1106.   put "142,295" into coord
  1107.   put 38 into idplane
  1108.  
  1109.   if hilite of button standby is true then
  1110.     if warning is not "L" and warning is not "N" then
  1111.       set hilite of button standby to false
  1112.       set hilite of ME to true
  1113.  
  1114.       show button id idplane of card "map" at coord
  1115.     else
  1116.       beep
  1117.       show card field "outOfRange" at the mouseh, the mousev
  1118.     end if
  1119.   end if
  1120.   hide card field "nono"
  1121. end mouseUp
  1122.  
  1123. on go
  1124.   put 25 into standby
  1125.   put 38 into idplane
  1126.   put "142,295" into coord
  1127.  
  1128.   set hilite of me to false
  1129.   set hilite of button standby to true
  1130.   hide button id idplane of card "map"
  1131. end go
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141. -- part 147 (button)
  1142. -- low flags: 00
  1143. -- high flags: 0000
  1144. -- rect: left=308 top=144 right=172 bottom=360
  1145. -- title width / last selected line: 0
  1146. -- icon id / first selected line: 0 / 0
  1147. -- text alignment: 1
  1148. -- font id: 0
  1149. -- text size: 12
  1150. -- style flags: 0
  1151. -- line height: 16
  1152. -- part name: SQ602A
  1153. ----- HyperTalk script -----
  1154. on mouseUp
  1155.   --global warning,objective,range,range2
  1156.   global avail,standby,patrol,detail,idplane,enroute,warning
  1157.   if warning is empty then
  1158.     beep
  1159.     show card field "whatraid" at the mouseh, the mousev
  1160.     exit mouseUp
  1161.   end if
  1162.  
  1163.   put 24 into avail
  1164.   put 25 into standby
  1165.   put 26 into patrol
  1166.   put 27 into detail                                         --CHANGES
  1167.   put 38 into idplane
  1168.   put "a" into enroute
  1169.   detail
  1170. end mouseUp
  1171.  
  1172. on go
  1173.   global numSquads,force,avail,standby,patrol,detail,idplane
  1174.   put 24 into avail
  1175.   put 25 into standby
  1176.   put 26 into patrol
  1177.   put 27 into detail                                         --CHANGES
  1178.   put 38 into idplane
  1179.   put 169 into sorties
  1180.   if hilite of button patrol is true or hilite of button standby is true then
  1181.     add 3 to force                                        --CHANGES
  1182.     set hilite of button patrol to false
  1183.     set hilite of button standby to false
  1184.   end if
  1185.   if hilite of button avail is true then add 2 to force     --CHANGES
  1186.   put the length of card field id sorties into exp
  1187.   divide exp by 20
  1188.   add exp to force
  1189.   put "/" after card field id sorties
  1190.   goa
  1191. end go
  1192.  
  1193.  
  1194. on results
  1195.   global damage,force,bforce,fforce,done
  1196.   global released,avail,releaseDate,base,coord,idplane,sorties
  1197.   put 23 into released
  1198.   put 24 into avail
  1199.   put 62 into releaseDate                                 --CHANGES
  1200.   put "A" into base
  1201.   put "142,295" into coord
  1202.   put 38 into idplane
  1203.   put 169 into sorties
  1204.   resultsa
  1205. end results
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219. -- part 148 (button)
  1220. -- low flags: 00
  1221. -- high flags: 0000
  1222. -- rect: left=308 top=171 right=201 bottom=360
  1223. -- title width / last selected line: 0
  1224. -- icon id / first selected line: 0 / 0
  1225. -- text alignment: 1
  1226. -- font id: 0
  1227. -- text size: 12
  1228. -- style flags: 0
  1229. -- line height: 16
  1230. -- part name: 
  1231. ----- HyperTalk script -----
  1232. on mouseUp
  1233.   global coord,patrol,detail,idplane
  1234.   put "142,295" into coord
  1235.   put 26 into patrol
  1236.   put 27 into detail                                          --CHANGES
  1237.   put 38 into idplane
  1238.   land
  1239. end mouseUp
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245. -- part 149 (button)
  1246. -- low flags: 00
  1247. -- high flags: 0000
  1248. -- rect: left=308 top=200 right=229 bottom=360
  1249. -- title width / last selected line: 0
  1250. -- icon id / first selected line: 0 / 0
  1251. -- text alignment: 1
  1252. -- font id: 0
  1253. -- text size: 12
  1254. -- style flags: 0
  1255. -- line height: 16
  1256. -- part name: 
  1257. ----- HyperTalk script -----
  1258. on mouseUp
  1259.   beep
  1260. end mouseUp
  1261.  
  1262.  
  1263.  
  1264. -- part 63 (field)
  1265. -- low flags: 81
  1266. -- high flags: 2004
  1267. -- rect: left=360 top=31 right=85 bottom=435
  1268. -- title width / last selected line: 0
  1269. -- icon id / first selected line: 0 / 0
  1270. -- text alignment: 1
  1271. -- font id: 3
  1272. -- text size: 9
  1273. -- style flags: 0
  1274. -- line height: 10
  1275. -- part name: releaseDate5
  1276. ----- HyperTalk script -----
  1277. on mouseUp
  1278.   hide card field "releaseDate5"
  1279. end mouseUp
  1280.  
  1281.  
  1282.  
  1283. -- part 109 (field)
  1284. -- low flags: 81
  1285. -- high flags: 2004
  1286. -- rect: left=420 top=29 right=84 bottom=495
  1287. -- title width / last selected line: 0
  1288. -- icon id / first selected line: 0 / 0
  1289. -- text alignment: 1
  1290. -- font id: 3
  1291. -- text size: 9
  1292. -- style flags: 0
  1293. -- line height: 10
  1294. -- part name: releaseDate6
  1295. ----- HyperTalk script -----
  1296. on mouseUp
  1297.   hide card field "releaseDate6"
  1298. end mouseUp
  1299.  
  1300.  
  1301.  
  1302. -- part 167 (field)
  1303. -- low flags: 00
  1304. -- high flags: 0000
  1305. -- rect: left=187 top=254 right=307 bottom=224
  1306. -- title width / last selected line: 0
  1307. -- icon id / first selected line: 0 / 0
  1308. -- text alignment: 0
  1309. -- font id: 3
  1310. -- text size: 9
  1311. -- style flags: 0
  1312. -- line height: 10
  1313. -- part name: sorties
  1314.  
  1315.  
  1316. -- part 168 (field)
  1317. -- low flags: 00
  1318. -- high flags: 0000
  1319. -- rect: left=251 top=254 right=308 bottom=288
  1320. -- title width / last selected line: 0
  1321. -- icon id / first selected line: 0 / 0
  1322. -- text alignment: 0
  1323. -- font id: 3
  1324. -- text size: 9
  1325. -- style flags: 0
  1326. -- line height: 10
  1327. -- part name: sorties
  1328.  
  1329.  
  1330. -- part 169 (field)
  1331. -- low flags: 00
  1332. -- high flags: 0000
  1333. -- rect: left=315 top=254 right=307 bottom=351
  1334. -- title width / last selected line: 0
  1335. -- icon id / first selected line: 0 / 0
  1336. -- text alignment: 0
  1337. -- font id: 3
  1338. -- text size: 9
  1339. -- style flags: 0
  1340. -- line height: 10
  1341. -- part name: sorties
  1342.  
  1343.  
  1344. -- part 31 (field)
  1345. -- low flags: 01
  1346. -- high flags: 0001
  1347. -- rect: left=308 top=0 right=342 bottom=512
  1348. -- title width / last selected line: 0
  1349. -- icon id / first selected line: 0 / 0
  1350. -- text alignment: 0
  1351. -- font id: 3
  1352. -- text size: 12
  1353. -- style flags: 0
  1354. -- line height: 16
  1355. -- part name: hideSquads
  1356.  
  1357.  
  1358. -- part 16 (field)
  1359. -- low flags: 81
  1360. -- high flags: 0004
  1361. -- rect: left=90 top=81 right=150 bottom=178
  1362. -- title width / last selected line: 0
  1363. -- icon id / first selected line: 0 / 0
  1364. -- text alignment: 1
  1365. -- font id: 3
  1366. -- text size: 9
  1367. -- style flags: 0
  1368. -- line height: 12
  1369. -- part name: nono
  1370. ----- HyperTalk script -----
  1371. on mouseUp
  1372.   hide card field id 16
  1373. end mouseUp
  1374.  
  1375.  
  1376.  
  1377. -- part 166 (field)
  1378. -- low flags: 00
  1379. -- high flags: 0000
  1380. -- rect: left=123 top=254 right=307 bottom=160
  1381. -- title width / last selected line: 0
  1382. -- icon id / first selected line: 0 / 0
  1383. -- text alignment: 0
  1384. -- font id: 3
  1385. -- text size: 9
  1386. -- style flags: 0
  1387. -- line height: 10
  1388. -- part name: sorties
  1389.  
  1390.  
  1391. -- part 28 (field)
  1392. -- low flags: 81
  1393. -- high flags: 2004
  1394. -- rect: left=105 top=33 right=89 bottom=182
  1395. -- title width / last selected line: 0
  1396. -- icon id / first selected line: 0 / 0
  1397. -- text alignment: 1
  1398. -- font id: 3
  1399. -- text size: 9
  1400. -- style flags: 0
  1401. -- line height: 10
  1402. -- part name: releaseDate
  1403. ----- HyperTalk script -----
  1404. on mouseUp
  1405.   hide card field "releaseDate"
  1406. end mouseUp
  1407.  
  1408.  
  1409.  
  1410. -- part 173 (field)
  1411. -- low flags: 81
  1412. -- high flags: 2004
  1413. -- rect: left=108 top=68 right=92 bottom=173
  1414. -- title width / last selected line: 0
  1415. -- icon id / first selected line: 0 / 0
  1416. -- text alignment: 1
  1417. -- font id: 3
  1418. -- text size: 9
  1419. -- style flags: 0
  1420. -- line height: 10
  1421. -- part name: PUB
  1422. ----- HyperTalk script -----
  1423. ON MOUSEUP
  1424.   HIDE card field "pub"
  1425. END MOUSEUP
  1426.  
  1427.  
  1428.  
  1429.  
  1430. -- part 62 (field)
  1431. -- low flags: 81
  1432. -- high flags: 2004
  1433. -- rect: left=283 top=32 right=86 bottom=358
  1434. -- title width / last selected line: 0
  1435. -- icon id / first selected line: 0 / 0
  1436. -- text alignment: 1
  1437. -- font id: 3
  1438. -- text size: 9
  1439. -- style flags: 0
  1440. -- line height: 10
  1441. -- part name: releaseDate4
  1442. ----- HyperTalk script -----
  1443. on mouseUp
  1444.   hide card field "releaseDate4"
  1445. end mouseUp
  1446.  
  1447.  
  1448.  
  1449. -- part 174 (field)
  1450. -- low flags: 81
  1451. -- high flags: 2004
  1452. -- rect: left=295 top=137 right=179 bottom=369
  1453. -- title width / last selected line: 0
  1454. -- icon id / first selected line: 0 / 0
  1455. -- text alignment: 1
  1456. -- font id: 3
  1457. -- text size: 9
  1458. -- style flags: 0
  1459. -- line height: 10
  1460. -- part name: whatRaid
  1461. ----- HyperTalk script -----
  1462. on mouseUp
  1463.   hide card field "whatRaid"
  1464. end mouseUp
  1465.  
  1466.  
  1467. -- part 61 (field)
  1468. -- low flags: 81
  1469. -- high flags: 2004
  1470. -- rect: left=239 top=31 right=87 bottom=313
  1471. -- title width / last selected line: 0
  1472. -- icon id / first selected line: 0 / 0
  1473. -- text alignment: 1
  1474. -- font id: 3
  1475. -- text size: 9
  1476. -- style flags: 0
  1477. -- line height: 10
  1478. -- part name: releaseDate3
  1479. ----- HyperTalk script -----
  1480. on mouseUp
  1481.   hide card field "releaseDate3"
  1482. end mouseUp
  1483.  
  1484.  
  1485.  
  1486. -- part 165 (field)
  1487. -- low flags: 81
  1488. -- high flags: 2004
  1489. -- rect: left=182 top=145 right=170 bottom=238
  1490. -- title width / last selected line: 0
  1491. -- icon id / first selected line: 0 / 0
  1492. -- text alignment: 1
  1493. -- font id: 3
  1494. -- text size: 10
  1495. -- style flags: 0
  1496. -- line height: 12
  1497. -- part name: outOfRange
  1498. ----- HyperTalk script -----
  1499. on no
  1500.   beep
  1501.   show card field "outOfRange" at the mouseh, the mousev
  1502. end no
  1503.  
  1504. on mouseUp
  1505.   hide card field "outOfRange"
  1506. end mouseUp
  1507.  
  1508.  
  1509. -- part 175 (field)
  1510. -- low flags: 81
  1511. -- high flags: 2004
  1512. -- rect: left=102 top=8 right=110 bottom=505
  1513. -- title width / last selected line: 0
  1514. -- icon id / first selected line: 0 / 0
  1515. -- text alignment: 1
  1516. -- font id: 2
  1517. -- text size: 20
  1518. -- style flags: 8192
  1519. -- line height: 22
  1520. -- part name: shutdown
  1521.  
  1522.  
  1523. -- part contents for card part 16
  1524. ----- text -----
  1525. You cannot order a RELEASED or AVAILABLE squadron on patrol.
  1526.  
  1527. -- part contents for card part 60
  1528. ----- text -----
  1529. AVAILABLE
  1530. IN 4 DAYS
  1531. PATCHING UP PLANES
  1532.  
  1533. -- part contents for card part 61
  1534. ----- text -----
  1535. AVAILABLE
  1536. IN 0 DAYS
  1537. PATCHING UP PLANES
  1538.  
  1539. -- part contents for card part 62
  1540. ----- text -----
  1541. AVAILABLE
  1542. IN 0 DAYS
  1543. PATCHING UP PLANES
  1544.  
  1545.  
  1546. -- part contents for card part 63
  1547. ----- text -----
  1548. AVAILABLE
  1549. IN 1 DAY
  1550. AWAITING AIRCRAFT
  1551.  
  1552.  
  1553. -- part contents for card part 109
  1554. ----- text -----
  1555. AVAILABLE
  1556. IN 4 DAYS
  1557.  
  1558.  
  1559.  
  1560. -- part contents for card part 165
  1561. ----- text -----
  1562. Too Far.
  1563.  
  1564. -- part contents for card part 28
  1565. ----- text -----
  1566. AVAILABLE
  1567. IN 0 DAYS
  1568. PATCHING UP PLANES
  1569.  
  1570.  
  1571. -- part contents for card part 173
  1572. ----- text -----
  1573. At the pub.
  1574.  
  1575. -- part contents for card part 174
  1576. ----- text -----
  1577.  
  1578. What raid?
  1579.  
  1580. -- part contents for card part 175
  1581. ----- text -----
  1582. DUE TO  BOMB DAMAGE 
  1583. NORMAL OPERATIONS AT THIS AERODROME ARE TEMPORARILY DISRUPTED.